<?php


$begin = time();
$time = 20;
$i = 0;
for($i = 0; ; $i++)
{
    if($i % 100000)
    {
        if(time() - $begin > $time)
        {
            break;
        }
    }
    //$t = ysip_get_region_info_by_name_ex("北京市");
//  $t = ysip_get_region_info_by_name("北京");
//  ysip_get_ip_info("203.209.241.83");
//  ysip_get_region_info_by_name("北京");
//  ysip_get_region_info_by_name_ex("北京");
//  ysip_get_region_info_by_en_name("beijing");
//  ysip_get_region_info(2595);
$t =  ysip_get_region_parents(97);
//    ysip_get_region_childs(97);
//  ysip_get_all_regions();

}

$end = time() ;
echo "Time is ", $end - $begin , "\n";
echo "Avg is " , $i/($end - $begin),"\n";

